.stop-task-floating-input {
  position: fixed;
  top: 88px;
  right: 20px;
  z-index: 9999;
  transition: all 0.3s ease;
}

.stop-task-floating-input.collapsed {
  width: 32px;
  height: 32px;
}

.stop-task-floating-input.expanded {
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid #ff4444;
  border-radius: 8px;
  padding: 12px;
  min-width: 220px;
  max-width: 300px;
  max-height: 80vh;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  animation: slideInFromRight 0.3s ease-out;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 悬浮按钮样式 */
.floating-button {
  width: 32px;
  height: 32px;
  /* background: linear-gradient(135deg, #ff4444, #ff6666); */
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  /* box-shadow: 0 4px 12px rgba(255, 68, 68, 0.4); */
  /* border: 2px solid rgba(255, 255, 255, 0.2); */
}

.floating-button:hover {
  transform: scale(1.1);
  /* box-shadow: 0 6px 20px rgba(255, 68, 68, 0.6); */
}

.floating-button:active {
  transform: scale(0.95);
}

.button-icon {
  font-size: 20px;
  color: white;
  margin-bottom: 2px;
}

.button-text {
  font-size: 10px;
  color: white;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 展开内容样式 */
.expanded-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}

/* 滚动条样式 */
.expanded-content::-webkit-scrollbar {
  width: 6px;
}

.expanded-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.expanded-content::-webkit-scrollbar-thumb {
  background: rgba(255, 68, 68, 0.6);
  border-radius: 3px;
}

.expanded-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 68, 68, 0.8);
}

.stop-task-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stop-task-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stop-task-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 6px 8px;
  color: #ffffff;
  font-size: 12px;
  width: 100%;
  box-sizing: border-box;
}

.stop-task-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.stop-task-input:focus {
  outline: none;
  border-color: #ff4444;
  background: rgba(255, 255, 255, 0.15);
}

.stop-task-section-title {
  color: #ff4444;
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.get-result-button {
  background: #4CAF50 !important;
}

.get-result-button:hover:not(:disabled) {
  background: #66BB6A !important;
}

.stop-task-result {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 8px;
  margin-top: 4px;
  max-height: 300px;
  overflow-y: auto;
}

/* 任务列表滚动条样式 */
.stop-task-result::-webkit-scrollbar {
  width: 4px;
}

.stop-task-result::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}

.stop-task-result::-webkit-scrollbar-thumb {
  background: rgba(255, 68, 68, 0.4);
  border-radius: 2px;
}

.stop-task-result::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 68, 68, 0.6);
}

.result-info {
  color: #cccccc;
  font-size: 11px;
  line-height: 1.4;
}

.result-info div {
  margin-bottom: 2px;
}

.stop-task-info {
  color: #ffffff;
  font-size: 12px;
  line-height: 1.4;
}

.stop-task-title {
  font-weight: bold;
  color: #ff4444;
  margin-bottom: 4px;
  font-size: 14px;
}

.stop-task-status {
  color: #cccccc;
}

.stop-task-progress {
  color: #4CAF50;
  font-weight: 500;
}

.stop-task-button {
  background: #ff4444;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stop-task-button:hover:not(:disabled) {
  background: #ff6666;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
}

.stop-task-button:active:not(:disabled) {
  transform: translateY(0);
}

.stop-task-button:disabled {
  background: #666666;
  cursor: not-allowed;
  opacity: 0.6;
}

.running-tasks-button {
  background: #4CAF50 !important;
}

.running-tasks-button:hover:not(:disabled) {
  background: #66BB6A !important;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3) !important;
}

.running-task-item {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 4px;
  padding: 8px;
  margin-bottom: 6px;
  font-size: 11px;
  word-break: break-all;
}

.running-task-item:last-child {
  margin-bottom: 0;
}

.running-task-item div {
  margin-bottom: 2px;
}

.running-task-item div:last-child {
  margin-bottom: 0;
}

/* 任务列表弹窗样式 */
.task-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: transparent !important;
  z-index: 10000 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
  /* backdrop-filter: blur(5px); */
  margin: 0 !important;
}

.task-modal {
  background: rgba(0, 0, 0, 1) !important;
  border: 1px solid #ff4444 !important;
  border-radius: 12px !important;
  width: 100% !important;
  max-width: 800px !important;
  max-height: 80vh !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
  animation: modalSlideIn 0.3s ease-out !important;
  position: relative !important;
  z-index: 10001 !important;
}

.task-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 68, 68, 0.3);
  background: rgba(255, 68, 68, 0.1);
}

.task-modal-header h3 {
  color: #ff4444;
  margin: 0;
  font-size: 18px;
  font-weight: bold;
}

.task-modal-close {
  background: none;
  border: none;
  color: #ff4444;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.task-modal-close:hover {
  background: rgba(255, 68, 68, 0.2);
  transform: scale(1.1);
}

.task-modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 任务列表滚动条样式 */
.task-modal-content::-webkit-scrollbar {
  width: 8px;
}

.task-modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.task-modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 68, 68, 0.6);
  border-radius: 4px;
}

.task-modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 68, 68, 0.8);
}

.task-modal-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
  transition: all 0.2s ease;
}

.task-modal-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 68, 68, 0.3);
  transform: translateY(-1px);
}

.task-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.task-id {
  color: #ffffff;
  font-weight: bold;
  font-size: 14px;
}

.task-status {
  font-weight: bold;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.task-item-details {
  color: #cccccc;
  font-size: 12px;
  line-height: 1.5;
}

.task-item-details div {
  margin-bottom: 4px;
}

.task-item-details div:last-child {
  margin-bottom: 0;
}

.task-list-button {
  background: #2196F3 !important;
}

.task-list-button:hover:not(:disabled) {
  background: #42A5F5 !important;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3) !important;
}

@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes modalSlideIn {
  from {
    transform: scale(0.8) translateY(-20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .stop-task-floating-input {
    top: 10px;
    right: 10px;
  }
  
  .stop-task-floating-input.collapsed {
    width: 32px;
    height: 32px;
  }
  
  .floating-button {
    width: 32px;
    height: 32px;
  }
  
  .button-icon {
    font-size: 16px;
  }
  
  .button-text {
    font-size: 8px;
  }
  
  .stop-task-floating-input.expanded {
    min-width: 180px;
    padding: 10px;
  }
  
  .stop-task-title {
    font-size: 12px;
  }
  
  .stop-task-info {
    font-size: 11px;
  }
  
  .stop-task-button {
    padding: 6px 10px;
    font-size: 11px;
  }
  
  /* 移动端弹窗样式 */
  .task-modal {
    max-width: 95vw;
    max-height: 90vh;
    margin: 10px;
  }
  
  .task-modal-header {
    padding: 12px 16px;
  }
  
  .task-modal-header h3 {
    font-size: 16px;
  }
  
  .task-modal-content {
    padding: 12px 16px;
  }
  
  .task-modal-item {
    padding: 12px;
  }
  
  .task-item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .task-id {
    font-size: 13px;
  }
  
  .task-status {
    font-size: 11px;
  }
  
  .task-item-details {
    font-size: 11px;
  }
}
